//
//  MapViewModel.m
//  FiltrationSystem
//
//  Created by 123456 on 2017/2/7.
//  Copyright © 2017年 YTYangK. All rights reserved.
//

#import "MapViewModel.h"

@implementation MapViewModel
singleton_for_implementation(MapViewModel)



+ (void)requestWithUrlForMap:(id)obj andParam:(NSDictionary *)param
                          success:(void(^)(NSMutableArray *model))success failure:(void(^)(NSString *error))failure {
    
    MDC_INTER_DIC(@"app/deviceListByLocation.do", @"NetMethodPOST", @"false")
    
    [super initRequestWithUrlObj:obj parametersDic:param Interface:inter success:^(id obj, id model) {
        
        NSLog(@"%@",model);

        
        success(model[@"body"][@"deviceDps"]);
        
    } failure:^(id obj, NSString *err) {
       
        failure(err);
        
    }];
}



@end
